//package com.igeekhome.config;
//
//
//import com.igeekhome.tool.Filter;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration  //当设置了configuration，在spring boot 启动后会在类路径下扫描有没有添加configuration，有，这个文件就是配置文件
//public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new Filter())//添加拦截器对象
//                .addPathPatterns("/**")  //拦截那些请求
//                .excludePathPatterns("/login","/register","/customerService/**","/login**","/","/css/**","/fonts/**","/images/**","/js/**","/pages/**","/partials/**","/vendors/**"); //不拦截那些请求
//
//    }
//}
